<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | URI1: https://gitee.com/yeafy   URI2:https://github.com/gtzhong
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------

namespace app\home\controller;


use app\yeafy\prototype\demo1\Plane;
use think\Controller;

class Prototype extends Controller
{
    public function plane()
    {
        $plane = new Plane();
        $plane ->setColor('blue');
        echo $plane->getColor();
        $plane2 = $plane->cloned();
        $plane2->setColor('red');
        echo $plane->getColor();
        echo $plane2->getColor();
    }
}